use Docker In Docker
fun Job.useDockerInDocker(dockerVersion: String = "20.10", dockerInDockerVersion: String = "-dind")(source)
Configures the current job to use the docker command using Docker In Docker.
For more information, see the GitLab documentation.
Parameters
docker Version
The version of Docker to use, which must correspond to a tag of the official docker image.
docker In Docker Version
The version of the Docker, which must correspond to a tag of the official docker image with DinD enabled.